<?php
include_once "../../../../common.php";
$query = "	SELECT 
				W.* 
			FROM Webshops AS W 
			WHERE W.ID = '".str_replace("'","",$_GET['id'])."'";
$result = $_MySQL->runQuery($query);
$row = mysql_fetch_assoc($result);	
?>
<h2><?=$row['ID'];?>. <?=$row['Name'];?></h2>
<table width="100%;">
	<tr>
		<td width="40%">
			Name
		</td>
		<td width="10px">:</td>
		<td>
			<?=$row['Name'];?>
		</td>
	</tr>
	<tr>
		<td>
			Website
		</td>
		<td>:</td>
		<td>
			<a href="<?=(substr(strtolower($row['URL']), 0, 7)!='http://'?'http://':'').$row['URL'];?>" target="_blank"><?=$row['URL'];?></a>
		</td>
	</tr>
	<tr>
		<td>
			CreateDate
		</td>
		<td>:</td>
		<td>
			<?=getNiceDateformat($row['CreateDate'], true);?>
		</td>
	</tr>
	<tr>
		<td>
			UserID
		</td>
		<td>:</td>
		<td>
			<?=$row['UserID'];?>
		</td>
	</tr>
	<tr>
		<td>
			Status
		</td>
		<td>:</td>
		<td>
			<?=$row['Status'];?>
		</td>
	</tr>
	<tr>
		<td>
			Opmerking
		</td>
		<td>:</td>
		<td>
			<?=$row['Opmerking'];?>
		</td>
	</tr>
	<tr>
		<td>
			Adres
		</td>
		<td>:</td>
		<td>
			<?=$row['Adres'];?>
		</td>
	</tr>
	<tr>
		<td>
			Postcode
		</td>
		<td>:</td>
		<td>
			<?=$row['Postcode'];?>
		</td>
	</tr>
	<tr>
		<td>
			Plaats
		</td>
		<td>:</td>
		<td>
			<?=$row['Plaats'];?>
		</td>
	</tr>
	<tr>
		<td>
			Fax
		</td>
		<td>:</td>
		<td>
			<?=$row['Fax'];?>
		</td>
	</tr>
	<tr>
		<td>
			Tel
		</td>
		<td>:</td>
		<td>
			<?=$row['Tel'];?>
		</td>
	</tr>
	<tr>
		<td>
			BTWnummer
		</td>
		<td>:</td>
		<td>
			<?=$row['BTWnummer'];?>
		</td>
	</tr>
	<tr>
		<td>
			KVKnummer
		</td>
		<td>:</td>
		<td>
			<?=$row['KVKnummer'];?>
		</td>
	</tr>
	<tr>
		<td>
			CountryID
		</td>
		<td>:</td>
		<td>
			<?=$row['CountryID'];?>
		</td>
	</tr>
	<tr>
		<td>
			BankNaam
		</td>
		<td>:</td>
		<td>
			<?=$row['BankNaam'];?>
		</td>
	</tr>
	<tr>
		<td>
			BankPlaats
		</td>
		<td>:</td>
		<td>
			<?=$row['BankPlaats'];?>
		</td>
	</tr>
	<tr>
		<td>
			Rekeningnummer
		</td>
		<td>:</td>
		<td>
			<?=$row['Rekeningnummer'];?>
		</td>
	</tr>
	<tr>
		<td>
			Tenaamstelling
		</td>
		<td>:</td>
		<td>
			<?=$row['Tenaamstelling'];?>
		</td>
	</tr>
	<tr>
		<td>
			IBAN
		</td>
		<td>:</td>
		<td>
			<?=$row['IBAN'];?>
		</td>
	</tr>
	<tr>
		<td>
			BIC
		</td>
		<td>:</td>
		<td>
			<?=$row['BIC'];?>
		</td>
	</tr>
	<tr>
		<td>
			FactuurBedrijfsnaam
		</td>
		<td>:</td>
		<td>
			<?=$row['FactuurBedrijfsnaam'];?>
		</td>
	</tr>
	<tr>
		<td>
			FactuurTAV
		</td>
		<td>:</td>
		<td>
			<?=$row['FactuurTAV'];?>
		</td>
	</tr>
	<tr>
		<td>
			FactuurAdres
		</td>
		<td>:</td>
		<td>
			<?=$row['FactuurAdres'];?>
		</td>
	</tr>
	<tr>
		<td>
			FactuurPostcode
		</td>
		<td>:</td>
		<td>
			<?=$row['FactuurPostcode'];?>
		</td>
	</tr>
	<tr>
		<td>
			FactuurPlaats
		</td>
		<td>:</td>
		<td>
			<?=$row['FactuurPlaats'];?>
		</td>
	</tr>
	<tr>
		<td>
			FactuurCountryID
		</td>
		<td>:</td>
		<td>
			<?=$row['FactuurCountryID'];?>
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<input type="button" value=" Bewerken " onClick="javascript:  openPopup('pop/editNAW.php?id=<?=$row['ID'];?>', 500, 600, 'Bewerken NAW');" /> 
		</td>
	</tr>
</table>